package terminal;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import terminal.config.ApplicationConfig;
import terminal.gui.MainWindow;

public class Application {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class);
		MainWindow mainWindow = context.getBean(MainWindow.class);
		mainWindow.open();
		((ConfigurableApplicationContext) context).close();
	}
}
